@echo off
chcp 65001 >nul
echo ====================================
echo   Claude Frontend Development Guide
echo   Starting demo application...
echo ====================================
echo.

echo [1/3] Checking Node.js...
node --version >nul 2>&1
if %errorlevel% neq 0 (
    echo Error: Node.js not found, please install Node.js first
    echo Download: https://nodejs.org/
    pause
    exit /b 1
)
echo Node.js is installed

echo.
echo [2/3] Installing dependencies...
if not exist node_modules (
    echo First run, installing dependencies...
    call npm install
) else (
    echo Dependencies already installed
)

echo.
echo [3/3] Starting development server...
echo.
echo ====================================
echo   App will open in browser
echo   URL: http://localhost:3000
echo
echo   Instructions:
echo   - Use arrow keys or space to navigate
echo   - Press F for fullscreen
echo   - Press ESC to exit fullscreen
echo
echo   Press Ctrl+C to stop server
echo ====================================
echo.

npm run dev

pause